import { VXETableSetupOptions } from 'vxe-table';

export default {
  vxeTable: {
    table: {
      border: true,
      stripe: true,
      columnConfig: {
        resizable: true,
        isCurrent: true,
        isHover: true
      },
      rowConfig: {
        isCurrent: true,
        isHover: true
      },
      emptyRender: {
        name: 'AEmpty'
      },
      printConfig: {
        enable: false
      },
      exportConfig: {},
      customConfig: {
        storage: true
      }
    },
    grid: {
      size: 'small',
      toolbarConfig: {
        enabled: true,
        export: false,
        zoom: true,
        print: false,
        refresh: true,
        custom: true,
        slots: {
          buttons: 'toolbar_buttons'
        }
      },
      pagerConfig: {
        enabled: true,
        pageSizes: [50, 100, 200, 500],
        pageSize: 50,
        autoHidden: false
      },
      proxyConfig: {
        autoLoad: true,
        form: true,
        props: {
          result: 'items',
          total: 'total'
        }
      },
      zoomConfig: {}
    }
  } as VXETableSetupOptions,
  Modal: {}
};
